MyCompletionProc
Your completion function should have the following form:
pascal OSErr MyCompletionProc (OSErr result, short flag, long refcon);
result
- Indicator of success of current operation.
flag
- Indicates which part of the operation is complete. The following flags are defined:
codecCompletionSource
The Image Compression Manager is done with the source buffer. The Image Compression Manager sets this flag to 1 when it is done with the processing associated with the source buffer. For compression operations, the source is the uncompressed pixel map you are compressing. For decompression operations, the source is the decompressed data you are decompressing.codecCompletionDest
The Image Compression Manager is done with the destination buffer. The Image Compression Manager sets this flag to 1 when it is done with the processing associated with the destination buffer.- Note that more than one of these flags may be set to 1.
refcon
- Contains a reference constant value for use by your completion function. Your application specifies the value of this reference constant in the callback function structure you pass to the Image Compression Manager.
RESULT CODES
noErr 0 No error